package com.fzg.common.demo.schedule;

import cn.hutool.core.date.LocalDateTimeUtil;
import lombok.extern.slf4j.Slf4j;

import java.time.LocalDateTime;

/**
 * create by fzg
 * 2022/12/14 10:53
 */

@Slf4j
//@Configuration
//@EnableScheduling
public class SpringScheduleDemo {

//    @Scheduled(cron = "0/1 * * * * ?")
    public void test(){
        log.info("任务启动：{}", LocalDateTimeUtil.formatNormal(LocalDateTime.now()));
    }

}
